import axios from '@/libs/api.request.js'


// 查询客户的地址列表
export const findAllList = data =>{
  return axios.request({
    method:"get",
    url:"/api/evaluation/list",
  })
};


export const getinfo = ownerId =>{
  return axios.request({
    method:"get",
    url:"/api/evaluation/getinfo/"+ownerId,
  })
};


export const add = data =>{
  return axios.request({
    method:"post",
    url:"/api/evaluation/add",
    data:data,
  })
};

// const data = {
//   orderSn:orderSn,
//   paymentMoney:paymentMoney,
//   productName:productName,
//(orderSn,paymentMoney,productName)
// }

export const unifiedOrder = (orderNo,amount,body) =>{
  const data = {
    orderNo:orderNo,
    amount:amount,
    body:body,
  }
  return axios.request({
    method:"get",
    url:"/api/wxPay/unifiedOrder",
    data:data,
  })
};





